<template>
  <div>
    <header>
      <div id="blank">
        <el-row id="header"></el-row>
      </div>
    </header>
    <nuxt-child/>
    <footer></footer>
  </div>
</template>
<style>
#header {
  background: black;
  float: left;
}
#left {
  height: 40px;
  float: left;
  width: 100px;
}
#right {
  height: 40px;
  float: right;
}
#blank {
  height: 100px;
  background: orange;
}
</style>

<script>
import { getUser } from "@/utils/auth";
export default {
  layout: "manager",
  mounted() {
   
    if (getUser().username == undefined) {
     // location.href = "/login";
      this.$router.push("/login")
    }
  }
};
</script>
